package com.jerry.quartz;

import org.apache.log4j.Logger;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * Created by Shirly on 2016/12/14.
 */
@Component
public class AnnoationTimer {

    Logger logger = Logger.getLogger(this.getClass());

    @Scheduled(cron = "0/5 * * * * ?")
    public void excute(){
        System.out.println("AnnoationTimer::"+new Date( )+"---------------------");
    }
}
